// JavaScript Document
function listProducts(infoMobile,image,name,price,count,min_price,max_price){
	document.write('<div class="listtitle">');
		if(max_price==null)
			document.write('<div class="left">' + infoMobile + '<span style="font-weight: normal; color: gray;"> (&gt;' + min_price + 'tr)</span></div>');
		else
			document.write('<div class="left">' + infoMobile + '<span style="font-weight: normal; color: gray;"> (' + min_price + ' - ' + max_price + 'tr)</span></div>');
		document.write('<div class="right">');
			document.write('<div class="resultleft">');
				document.write('<span class="count">('+ count + ' sản phẩm)</span>');
			document.write('</div>');
			document.write('<div class="resultright"><span class="count">Hiển thị: ' + count + '/' + count + '</span></div>');
		document.write('</div>');
		document.write('<div class="clear"> </div>');
	document.write('</div>');
	document.write('<div class="list">');
	for(i=1;i<=count;i++)
	{
		document.write('<div class="item">');
			if(i==3||i==5||i==7||i==10||i==11||i==18)
				document.write('<div class="image_hot">&nbsp;</div>');
			else
				document.write('<div class="image_empty">&nbsp;</div>');
			document.write('<div class="image">');
				document.write('<div class="divvalign">');
					document.write('<div class="divvalign2">');
							document.write('<a href="#"><img src="images/Products/'+ image[i-1] +'.jpg" /></a>');
					document.write('</div>');
				document.write('</div>');
			document.write('</div>');
			document.write('<div class="name"><a href="#">'+name[i-1]+'</a></div>');
			document.write('<div class="price">'+price[i-1]+'</div>');
		document.write('</div>');
		if(i%5==0)
			document.write('<div class="clear"></div>');
	}
	document.write('</div>');
};
function listNewProducts(nameMobile,image,price,count){
	for(i=0;i<count;i++)
	{
		document.write('<div class="item">');
			document.write('<a href="#" class="new-mobile"><img src="images/Products/' + image[i] + '.jpg" alt="' + nameMobile[i] + ' - Dreamhigh.com" width="40px" height="40px" /></a>');
			document.write('<div class="name"><a href="#">' + nameMobile[i] + '</a></div>');
			document.write('<div class="price">' + price[i] + '</div>');
		document.write('</div>');
	}
};